#include <stdio.h>
#include <algorithm>

int arr[20];
signed main() {
    freopen("C:\\Users\\lenovo\\Desktop\\in.in", "r", stdin); // 从in.in读取
    freopen("C:\\Users\\lenovo\\Desktop\\out.out", "w", stdout); // 输出到out.out
    
    int n;
    while (scanf("%d", &n) && n != 0) {
        for (int i = 1; i <= n; ++ i) {
            scanf("%d", &arr[i]);
        }
        for (int i = 1; i <= n; ++ i) {
            for (int j = i + 1; j <= n; ++ j) {
                if (arr[i] > arr[j]) {
                    int temp = arr[i];
                    arr[i] = arr[j];
                    arr[j] = temp;
                }
            }
        }
        for (int i = 1; i <= n; ++ i) {
            printf("%d ", arr[i]);
        }
        printf("\n");
    }



    return 0;
}